package com.mm.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.mm.BaseSupper.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户、角色关联表
 * </p>
 *
 * @author wdx
 * @since 2020-09-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("mm_user_role")
@ApiModel(value="MmUserRole对象", description="用户、角色关联表")
public class MmUserRole extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "角色ID")
    @TableField("role_id")
    private Integer roleId;


    public static final String USER_ID = "user_id";

    public static final String ROLE_ID = "role_id";

}
